package com.sky.service.impl;

import com.sky.entity.Setmeal;
import com.sky.mapper.SetmealDishMapper;
import com.sky.service.SetmealDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealDishServiceImpl implements SetmealDishService {

    @Autowired
    private SetmealDishMapper setmealDishMapper;


    /**
     * 根据dishIds 查询 SetmealDish中间表ids
     * @param dishIds
     * @return
     */
    public List<Long> getSetmealDishIdsByDishIds(Long[] dishIds) {

        List<Long> ids = setmealDishMapper.selectSetmealDishIdsByDishIds(dishIds);

        return ids;
    }
}
